﻿{extend name="layout/main-block" /}
{block name="sub-wrapper"}
    <!--内容容器-->
    <section id="sub-wrapper full-height" class="full-screen page-carData">
        <!--数据展示容器-->
        <div id="sub-content">
            <div id="sub-header">
                <div class="sub-title">
                    <h3><i class="fa fa-car"></i>车辆--车辆分布</h3>
                </div>
            </div>
            <div id="sub-report" class="mapcontainer">

            </div>
            <div id="sub-header-second">
                <div class="sub-title">
                    <h3><i class="fa fa-car"></i>车辆--新增车辆</h3>
                </div>
            </div>

            <div class="table-responsive data-table">
                <table class="table table-striped table-bordered table-hover">
                    <thead>
                    <tr>
                        <!-- <th class="text-center" width="34px">
                            <input type="checkbox" />
                        </th> -->
                        <th width="60px">ID</th>
                        <th>设备SN</th>
                        <th>关联账户</th>
                        <th>车牌</th>
                        <th>车型</th>
                        <th>品牌</th>
                        <th>区域</th>
                        <th width="160px">激活时间</th>
                    </tr>
                    </thead>
                    <tbody>
                    {volist name="cardata" id="v" empty="$empty" }
                    <tr>
                        <!-- <td class="text-center">
                            <input type="checkbox" />
                        </td> -->
                        <td>{$v.id}</td>
                        <td>{$v.sn}</td>
                        <td>{$v.username}</td>
                        <td>{$v.plate_number}</td>
                        <td>{$v.car_model}</td>
                        <td>{$v.car_brand}</td>
                        <td>{$v.address}</td>
                        <td>{$v.created_at}</td>
                    </tr>
                    {/volist}

                    </tbody>
                    <tfoot>
                    <tr>
                        <td colspan="3" class="">
                            {$page}
                            <!--<ul class="pagination">
                                <li>
                                    <a href="#" aria-label="Previous">
                                        <span aria-hidden="true">&laquo;</span>
                                    </a>
                                </li>
                                <li class="active"><a href="#">1</a></li>
                                <li><a href="#">2</a></li>
                                <li><a href="#">3</a></li>
                                <li><a href="#">4</a></li>
                                <li><a href="#">5</a></li>
                                <li><a href="#">...</a></li>
                                <li><a href="#">999</a></li>
                                <li>
                                    <a href="#" aria-label="Next">
                                        <span aria-hidden="true">&raquo;</span>
                                    </a>
                                </li>
                            </ul>-->
                        </td>
                        <td colspan="3" class="text-center">
                            <div class="table-summary">
                                <div class="input-group">
                                    <div class="input-group-addon">到第</div>
                                    <input type="text" class="form-control" id="goto" placeholder="" style="width:40px;">
                                    <div class="input-group-addon">页</div>
                                    <span class="input-group-btn">
                                                <a class="btn btn-primary" data-currentPage="{$currentPage}" data-lastPage="{$lastPage}" id="gotoPage"><i class="fa fa-arrow-right"></i>确定</a>
                                            </span>
                                </div>
                            </div>
                        </td>
                        <td colspan="2" class="text-center">
                            共<span id="total-record" class="text-success fa-2x"> {$count} </span>条记录
                        </td>
                    </tr>
                    </tfoot>
                </table>
            </div>
        </div>
    </section>
{/block}
{block name="javascript"}
<script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.13&key=9cb8a32e9e3080ed4557177e25fd0713"></script>
{/block}